#! /bin/sh

/bin/mount -t proc proc /proc
/bin/mount -t sysfs /sys /sys
/bin/mount -t tmpfs /tmpfs /dev
/bin/mount -t ramfs none /var

/sbin/udevd --daemon
/sbin/udevstart 

/bin/hostname seqiot
/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0
/sbin/ifconfig eth0 hw ether 01:23:45:67:89:ab
/sbin/ifconfig eth0 192.168.1.251 netmask 255.255.255.0
/sbin/route add default gw 192.168.1.1 dev eth0

/sbin/insmod /lib/modules/2.6.24/can.ko
/sbin/insmod /lib/modules/2.6.24/lte.ko
/sbin/insmod /lib/modules/2.6.24/exio_dev.ko

/bin/rm -fr /media/*
/bin/rm /dev/fb
/bin/mkdir /dev/fb
/bin/ln -s /dev/fb0 /dev/fb/0
/bin/mkdir /var/run
/bin/mkdir /tmp

/bin/ln -s /dev/rtc0 /dev/rtc
/sbin/hwclock -s

source /etc/init.d/rcS.init

/usr/sbin/telnetd -p 1523
/usr/sbin/remote_terminal &
/bin/redis-server /etc/redis.conf 1>/dev/null &
/bin/mosquitto -c /etc/mosquitto.conf -d

exec /etc/init.d/rcS.local